package cn.sunlelin.educationserver.mapper;

import cn.sunlelin.educationserver.entity.User;

import java.util.List;

public interface UserMapper {
    public void createUser(User user);
    public void updateUser(User user);
    public void updatePassword(User user);
    public void updateEmail(User user);
    public User findUserNameAndPassword(User user);
    public User selectUserByEmail(String email);

    public List<User> findAll();
    public User selectUserAllById(Integer userId);
    public void deleteUser(User user);
    public User selectUserByName(String userName);
}
